<template>
    <div class="parent" style="margin-bottom: 10px;">
        <div class="icon"></div>
        <div class="text">
            {{ title }}
        </div>

    </div>
</template>
<script>
export default {

    //接受父组件传递的值
    props: ['title']
}
</script>
<style lang="less" scoped>
.parent {
    display: flex;

    .icon {
        width: 24px;
        height: 30px;
        background-image: url(../../assets/layout/box_title_icon.png);
        background-size: 100% 100%;
        margin-right: 10px;
    }

    .text {
        font-size: 20px;
        font-weight: bold;
        font-family: "黑体";
        color:rgb(51, 141, 197);
        line-height: 30px; //行高
    }
}
</style>